package cn.model;

import cn.util.Toolsutil;

import java.sql.Timestamp;

public class VRoleSystemModel {
    private int id;
    private int roleid;
    private String rolename;
    private String createtime;
    private String description;
    private int sysid;
    private String sysname;
    private String navurl;
    private String chinesename;
    private String accesslevel;
    private int deepth;
    private int parentid;
    private int displayorder;
    private String imageurl;
    private String value;
    private String systemname;
    private String isdelete;
    private boolean isedit;
    private String createdate;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getRoleid() {
        return roleid;
    }

    public void setRoleid(int roleid) {
        this.roleid = roleid;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public String getCreatetime() {
        return Toolsutil.GetDateFormat(createtime);
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getSysid() {
        return sysid;
    }

    public void setSysid(int sysid) {
        this.sysid = sysid;
    }

    public String getSysname() {
        return sysname;
    }

    public void setSysname(String sysname) {
        this.sysname = sysname;
    }

    public String getNavurl() {
        return navurl;
    }

    public void setNavurl(String navurl) {
        this.navurl = navurl;
    }

    public String getChinesename() {
        return chinesename;
    }

    public void setChinesename(String chinesename) {
        this.chinesename = chinesename;
    }

    public String getAccesslevel() {
        return accesslevel;
    }

    public void setAccesslevel(String accesslevel) {
        this.accesslevel = accesslevel;
    }

    public int getDeepth() {
        return deepth;
    }

    public void setDeepth(int deepth) {
        this.deepth = deepth;
    }

    public int getParentid() {
        return parentid;
    }

    public void setParentid(int parentid) {
        this.parentid = parentid;
    }

    public int getDisplayorder() {
        return displayorder;
    }

    public void setDisplayorder(int displayorder) {
        this.displayorder = displayorder;
    }

    public String getImageurl() {
        return imageurl;
    }

    public void setImageurl(String imageurl) {
        this.imageurl = imageurl;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getSystemname() {
        return systemname;
    }

    public void setSystemname(String systemname) {
        this.systemname = systemname;
    }

    public String getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(String isdelete) {
        this.isdelete = isdelete;
    }

    public boolean isIsedit() {
        return isedit;
    }

    public void setIsedit(boolean isedit) {
        this.isedit = isedit;
    }

    public String getCreatedate() {
        return Toolsutil.GetDateFormat(createdate);
    }

    public void setCreatedate(String createdate) {
        this.createdate = createdate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        VRoleSystemModel that = (VRoleSystemModel) o;

        if (id != that.id) return false;
        if (roleid != that.roleid) return false;
        if (sysid != that.sysid) return false;
        if (deepth != that.deepth) return false;
        if (parentid != that.parentid) return false;
        if (displayorder != that.displayorder) return false;
        if (isedit != that.isedit) return false;
        if (rolename != null ? !rolename.equals(that.rolename) : that.rolename != null) return false;
        if (createtime != null ? !createtime.equals(that.createtime) : that.createtime != null) return false;
        if (description != null ? !description.equals(that.description) : that.description != null) return false;
        if (sysname != null ? !sysname.equals(that.sysname) : that.sysname != null) return false;
        if (navurl != null ? !navurl.equals(that.navurl) : that.navurl != null) return false;
        if (chinesename != null ? !chinesename.equals(that.chinesename) : that.chinesename != null) return false;
        if (accesslevel != null ? !accesslevel.equals(that.accesslevel) : that.accesslevel != null) return false;
        if (imageurl != null ? !imageurl.equals(that.imageurl) : that.imageurl != null) return false;
        if (value != null ? !value.equals(that.value) : that.value != null) return false;
        if (systemname != null ? !systemname.equals(that.systemname) : that.systemname != null) return false;
        if (isdelete != null ? !isdelete.equals(that.isdelete) : that.isdelete != null) return false;
        if (createdate != null ? !createdate.equals(that.createdate) : that.createdate != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + roleid;
        result = 31 * result + (rolename != null ? rolename.hashCode() : 0);
        result = 31 * result + (createtime != null ? createtime.hashCode() : 0);
        result = 31 * result + (description != null ? description.hashCode() : 0);
        result = 31 * result + sysid;
        result = 31 * result + (sysname != null ? sysname.hashCode() : 0);
        result = 31 * result + (navurl != null ? navurl.hashCode() : 0);
        result = 31 * result + (chinesename != null ? chinesename.hashCode() : 0);
        result = 31 * result + (accesslevel != null ? accesslevel.hashCode() : 0);
        result = 31 * result + deepth;
        result = 31 * result + parentid;
        result = 31 * result + displayorder;
        result = 31 * result + (imageurl != null ? imageurl.hashCode() : 0);
        result = 31 * result + (value != null ? value.hashCode() : 0);
        result = 31 * result + (systemname != null ? systemname.hashCode() : 0);
        result = 31 * result + (isdelete != null ? isdelete.hashCode() : 0);
        result = 31 * result + (isedit ? 1 : 0);
        result = 31 * result + (createdate != null ? createdate.hashCode() : 0);
        return result;
    }
}
